#!/usr/bin/python
# -*- coding: UTF-8 -*-

import sys, os
import pandas as pd

class  PAIExperimentRecord(object):
    def __init__(self):
        super().__init__()

        # basic para
        self.experiment_ID = None
        self.experiment_person = None
        self.experiment_date = None
        self.experiment_object = None
        self.experiment_comments = None
        self.experiment_data_path = None   ##person_date_time

        ## testing material para
        self.testing_material_sound_velocity = None
        self.testing_material_size = None
        ## 成像深度

        # probe para
        self.probe_channel_number = None
        self.probe_type = None
        self.probe_pitch = None  ## 每个阵元的宽度

        ## acq emit para
        self.acq_emit_sound_frequency = None
        self.acq_emit_trigger_mode = None
        self.acq_emit_trigger_number = None
        self.acq_emit_frame_Number = None
        self.acq_emit_line_number = None

        ## acq receive para
        self.acq_receive_delay = None
        self.acq_receive_gain = None
        self.acq_receive_attenuation = None

    
    def setExperimentID(self, experimentID):
        self.experiment_ID = experimentID
    
    def getExperimentID(self):
        return self.experiment_ID
    
    def setExperimentPerson(self, experimentPerson):
        self.experiment_person = experimentPerson
    
    def getexperimentPerson(self):
        return self.experiment_person
    
    def setExperimentDate(self, experimentDate):
        self.experiment_date = experimentDate
    
    def getExperimentDate(self):
        return self.experiment_date

    def setExperimentObject(self, experimentObject):
        self.experiment_object = experimentObject
    
    def getExperimentObject(self):
        return self.experiment_object
    
    def setExperimentComments(self, experimentComments):
        self.experiment_comments = experimentComments
    
    def getExperimentComments(self):
        return self.experiment_comments
    
    def setExperimentDataPath(self, experimentDataPath):
        self.experiment_data_path = experimentDataPath

    def getExperimentDataPath(self):
        return self.experiment_data_path

    def setTriggerMode(self, triggerMode):
        self.acq_emit_trigger_mode = triggerMode
    
    def getTriggerMode(self):
        return self.acq_emit_trigger_mode

    def setTriggerNumber(self, triggerNumber):
        self.acq_emit_trigger_number = triggerNumber

    def getTriggerNumber(self):
        return self.acq_emit_trigger_number

    def experimentRecord(self):
        return pd.Series([self.experiment_ID, 
                          self.experiment_person,
                          self.experiment_date,
                          self.experiment_object,
                          self.experiment_comments,
                          self.experiment_data_path,
                          self.acq_emit_trigger_mode,
                          self.acq_emit_trigger_number,
                          self.acq_emit_frame_Number])




if __name__ == "__main__":
    record = PAIExperimentRecord()
    record.setExperimentID("123")
    record.setExperimentComments("reserve")
    series = record.experimentRecord()
    print(series)